cmake_minimum_required(VERSION 3.10.2)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

project(fly_qgc_mission)

add_executable(fly_qgc_mission
    fly_qgc_mission.cpp
)

find_package(MAVSDK REQUIRED)

target_link_libraries(fly_qgc_mission
    MAVSDK::mavsdk
)

if(NOT MSVC)
    add_compile_options(fly_qgc_mission PRIVATE -Wall -Wextra)
else()
    add_compile_options(fly_qgc_mission PRIVATE -W2)
endif()
